package com.example.comsumer.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 王瑞
 * @description: TODO
 * @date 2020/4/17  12:58
 */
@RestController
@RequestMapping("/com")
public class MyController {
    @Autowired
    private ComsumerServiceForProA proA;

    @Autowired
    private ComsumerServiceForProB proB;


    String name = "lagou-dubbo-demo";

    @RequestMapping("/test")
    public String test(){
        return proA.comsumerServiceMethod(name);
    }

    @RequestMapping("/test2")
    public String test2(){
        return proB.comsumerServiceMethod(name);
    }

}
